/**
 * Represents a non method in the abstract syntax
 * Used for computing the total character count of the class
 */
public class AbstractNonMethod {

	private String code;
	private AbstractAndroidClass androidClass;
	
	public AbstractNonMethod(String code) {
		this.code = code;
	}
	
	public void setAndroidClass(AbstractAndroidClass androidClass) {
		if(this.androidClass != androidClass) {
			this.androidClass = androidClass;
			androidClass.addAbstractNonMethod(this);
		}
	}
	
	public AbstractAndroidClass getAndroidClass() {
		return androidClass;
	}
	
	public String getCode() {
		return code;
	}

}
